package com.ljn.springboot.exception;


import lombok.Getter;

@Getter


public class ServiceException extends RuntimeException {

    private final String code;

    public ServiceException(String m) {
        super(m);
        this.code = "500";
    }

    public ServiceException(String m, String code) {
        super(m);
        this.code = code;
    }


}

